<div class="advertisement-detail" ng-controller="AdvertisementController" ng-init="initAdvertisement()">

  <div ng-include="'angular/template/include/toptip.html'">

  </div>

  <div class="header">
    <img src="{{qiniuhost}}{{advertisementDto.cover}}!200" alt=""/>
    <h1>{{advertisementDto.adTitle}}</h1>
  </div>

  <ul class="list bg-gray top-margin-20" style="margin-left: -20px; margin-right: -20px;">
    <li class="item clearfix" >
      <label class="red font-bold">发放平台</label>
      <p class="pull-right">{{advertisementDto.socialTypeName}}</p>
    </li>
    <li class="item clearfix" >
      <label class="red font-bold">关键字</label>
      <p ng-repeat="materialKeyword in advertisementDto.materialKeywords" class="pull-right">
      	{{materialKeyword}}&nbsp;&nbsp;
      </p>
    </li>
    <li class="item clearfix" style="height: auto;">
      <label><span class="red font-bold">任务描述</span>&nbsp;&nbsp;<small class="gray">(可复制参考该文案)</small></label>
      <p class="item-body no-top-margin left-padding-20">{{advertisementDto.description}}</p>
    </li>

    <li class="item clearfix" style="height: auto;" ng-hide="materialImages.length == 0">
      <label><span class="red font-bold">任务图片</span>&nbsp;&nbsp;<small class="gray">(复制图片并转发到对应社交平台)</small></label>
      <ng-gallery images="galleryImages">
      </ng-gallery>
    </li>



    <li class="item clearfix" style="height: auto;" ng-hide="!advertisementDto.link">
      <label><span class="red font-bold">任务链接</span>&nbsp;&nbsp;<small class="gray">(点击该链接跳转并分享到社交平台)</small></label>
      <a href="{{advertisementDto.link}}" class="item-body no-top-margin left-padding-20">{{advertisementDto.link}}</a>
    </li>

  </ul>

  <div class="margin-20">
    <button class="btn btn-block client-btn" ng-click="addTask()">接受任务</button>
  </div>

</div>
